/*
 *  TextConsole.cpp
 *  Typeface Builder
 *
 *  Created by David Rowland on 01/12/2008.
 *  Copyright 2008 UWE. All rights reserved.
 *
 */

#include "TextConsole.h"

TextConsole::TextConsole () : TextEditor (T("Console"))
{
	setMultiLine (true);
	setReadOnly (true); 
}

TextConsole::~TextConsole()
{
	
}

void TextConsole::addLine (const String& text) 
{
	setCaretPosition (getText ().length ());		// Move cursor to end of text
	insertTextAtCursor (text + T("\n"));			// Copy text to end of console and crate a new line
}